package com.daybyday.day1.day8;

import java.awt.*;
import java.io.*;
import java.util.ArrayList;
import java.util.List;

/*
@李子宁
Happy,happy everyday!
冲鸭！
2021/1/28

*/
public class DEpartClass {

    public static void main(String[] args) throws IOException {
        BufferedOutputStream os = new BufferedOutputStream(new FileOutputStream("to.xls",true));
        for (int i = 0; i <= 1; i++) {
            File file = new File("D:\\IntelliJ IDEA-workspace\\Basic\\day01-code\\src\\com\\daybyday\\day1\\day8\\" + i+".xls");
            BufferedInputStream in = new BufferedInputStream(new FileInputStream(file));
            int len;
            byte[] bytes = new byte[1024];
            while ((len = in.read(bytes)) != -1){
                    os.write(bytes);
            }
            in.close();
        }

        os.close();




    }
}
